import { createApp } from 'vue'
import './assets/styles/reset.css'
import './assets/styles/global.css'
import 'element-plus/dist/index.css'
import ElementPlus from 'element-plus'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import App from './App.vue'
import router from './router'

//创建App
const app = createApp(App)

//注册路由
app.use(router)
//注册ElementPlus组件
app.use(ElementPlus)
//注册ElementPlus的icon
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}
//挂载到index.html入口文件中id为app的div上
app.mount('#app')

console.log("正在使用vue版本:", app.version)
console.log(import.meta.env.VITE_HELLO)